package com.yl.security;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;
import java.util.Collection;

/**
 * @author EalenXie create on 2020/11/24 19:16
 * 安全用户信息
 */
@NoArgsConstructor(force = true)
@AllArgsConstructor
@Data
public class AccountInfo implements Serializable {

    private Long userId;

    private String username;

    private String clientId;

    private Collection<? extends GrantedAuthority> authorities;

    private boolean accountNonExpired;

    private boolean accountNonLocked;

    private boolean credentialsNonExpired;

    private boolean enabled;

}
